package com.bl.student.dao.repository;

import com.bl.student.dao.model.ApplyEntity;
import com.bl.student.dao.model.ConfirmEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by liangweikang on 19/6/2.
 */
public interface ConfirmRepository extends JpaRepository<ConfirmEntity, String> {

    List<ConfirmEntity> findByTaskId(String taskId);
    List<ConfirmEntity> findByTaskIdOrderByCreateTimeDesc(String taskId);

    List<ConfirmEntity> findByTaskIdAndPartybIdOrderByCreateTimeDesc(String taskId, String partybId);
}
